home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Message-ID: <xWvN8MD4F55aCz4@tms.dame.shnet.org>
- From: TMS@DAME.SHNET.ORG (Mirko Th≈le)
- Path: dame.shnet.org!TMS
- Organization: Cosys der Notre Dame Hamburg
- Subject: Re: Bored? Tell me why my code crashes! :)
- Date: Thu, 28 Mar 1996 19:15:56 +0200
- X-Mailer: MicroDot 1.11beta16 [REGISTERED 004f55]
- References: <199603230639.BAA04609@strauss.udel.edu>, <Pine.AMI.3.91.960322185136.136429608A-100000@arh0268.urh.uiuc.edu>
- X-Gateway: ZCONNECT US genepi.shnet.org [UNIX/Connect v0.71]
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Z-TELEFON: ++49 [40] 648 11 69
-
- Nachricht vom : 22.03.1996 (17:53:24)
- Reply auf : Re: Bored? Tell me why my code crashes! :)
- geschrieben von : dannyman@enteract.com (Dannyman)
- ---------------------------------------------------------------------------
-
- If i remember right, you use FGets() to read the line?
-
- Use FGets(fh, Buffer, sizeof(Buffer)-1);
-
-
- FGets() BUGS:
-
- In V36 and V37, it copies one more byte than it should if it doesn't
- hit an EOF or newline. In the example above, it would copy 50 bytes
- and put a null in the 51st. This is fixed in dos V39. Workaround
- for V36/V37: pass in buffersize-1.
-
- > ====///=====This message brought to you by dannyman@enteract.com============
-
- --
- MfG, Mirko Thoele E-Mail: TMS@DAME.SHNET.ORG
- CoSys Notre Dame Hamburg - 040/64893287 Voice
- ---------------------------------------------------------------------------
- Ach was, diese Brⁿcke hΣlt noch hundert Jahre.
- Famous last words Nr.: 922
- ---------------------------------------------------------------------------
-